﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using FriendAnalyzer.Infrastructure.Facebook.Tests.Mocks;

namespace FriendAnalyzer.Infrastructure.Facebook.Tests
{
    /// <summary>
    /// Simple functionality tests for the Facebook API wrapper.
    /// </summary>
    [TestClass]
    public class FacebookAPITests
    {
        private const string _appId = "";
        private const string _appSecret = "";

        /// <summary>
        /// The result should not return a valid API when provided a bad input
        /// </summary>
        [TestMethod]
        public void ShouldNotReturnSuccesfulResultWithInvalidFacebookResponse()
        {
            var facebookResponse = string.Empty;
            
            var auth = new FacebookAuth(_appId, _appSecret);

            var api = auth.GetAuthenticationResult(facebookResponse);

            Assert.AreEqual(false, api.IsSuccesful());
        }
    }
}